 <html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
		<script type="text/javascript" src="http://prototypejs.org/assets/2009/6/16/prototype.js"></script>
		<script type="text/javascript" src="http://vd-gadget.googlecode.com/svn/trunk/kinesysLib.js"></script>
		<script src="http://www.open.gmodules.com/gadgets/js/core:core.io.js?v=b2c5cf4830b3297eec80a131fcf575f9&container=open&debug=0">
		<script type="text/javascript">
		 		 
			 
			var sendRequest  = function () {
			alert("send");
				 var params = {};  
				params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;  
				var url = "https://10.111.74.20/valeo/K_Directory.nsf/a_wagent?openagent&p1=&p2=xavier.bourse@valeo.com&p3=";
				alert ("envoi");
				alert (url);
				gadgets.io.makeRequest(url, responseFunc, params);
			}; 

			var responseFunc = function (obj) {
				alert("reception");
				var responseText = obj.text; 
				alert (responseText);
				var personne =  eval('(' + responseText + ')');
				$('Nom').value = personne.nom
				$('Prenom').value = personne.prenom
			};
			
		</script>
	</head>
	<body style="background-color:#76B5CD" onload="doOnLoad();"><div id="header"></div>
		
		<div id="msg">v0.68</div>
	
	<FORM name="ajax" id="idAjax" method="POST" action="" >
		<table width="300">
			<tr>
				<td>__MSG_Nom__</td>
				<td><input type="text" size="35" id="Nom" disabled="disabled" value="--"></td>
			</tr>
			<tr>
				<td>__MSG_Prenom__</td>
				<td><input type="text" size="35" id="Prenom" disabled="disabled" value="--"></td>
			</tr>
			<tr>
				<td>__MSG_EMail__</td>
				<td><input type="text" size="35" id="EMail" value="sebastien.coste@valeo.com"></td>
			</tr>
			<tr align="middle">
			<td colspan="2"><INPUT type="BUTTON" id="search" value="Submit" ONCLICK="sendRequest()"></td>
			</tr>
		</table>

	</FORM>

   </body>
   </html>